@import "../../libs/weui.css";
@import "../../libs/base";
@import "cropper.css";

a {
  text-decoration: none;
}

@margin-left: 15px;
@header-height: 40px;
header {
  position: relative;
  width: 100%;
  height: @header-height;
  background: #0092D7;

  .logo {
    width: 100%;
    height: 100%;
    float: left;
    text-align: center;

    .title {
      margin-left: -60px;
      color: #fff;
      font: normal normal normal 16px/@header-height 'microsoft yahei';
    }

    a {
      float: left;
      margin: 0 @margin-left;
      color: #fff;
      font: normal normal normal 16px/@header-height 'microsoft yahei';
      text-decoration: none;
    }
  }
}

.fly-top {
  position: fixed;
  bottom: 30px;
  right: 10px;
  display: none;

  a {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 16px; 
    background: #fff url(imgs/up.png) no-repeat center center;
  }
}

.container {  
  position: relative;
  width: 100%;
  overflow: hidden;
  
  @moto-name-height: 30px;
  .moto-name {
    height: @moto-name-height;
    margin: 5px 15px 0;
    font: normal normal bold 15px/@moto-name-height 'microsoft yahei';
    color: #0092D7;
  }

  .hint {
    color: #999;
    margin: 5px 15px;
    font: normal normal normal 13px/22px 'microsoft yahei';    
  }

  .title {
    padding: 0 15px;
    background: #eee;
    font: normal normal bold 14px/40px 'microsoft yahei';  

    .add {
      float: right;
      color: #0092D7;
    }
  }

  .imgs-upload {
    margin: 10px 15px;

    .add {
      position: relative;
      width: 60px;
      height: 60px;
      border: 1px solid #ddd;
      background: transparent url(../../imgs/add.png) no-repeat center center;
    }

    input {
      display: none;
    }
  }

  .imgs-content {
    min-height: 100px;
    overflow: hidden;

    ul {
      li {
        width: 50%;
        float: left;
        margin: 20px 0 0;

        &:nth-child(odd) {
          >div {
            padding: 5px 10px 0;
          }
        }
        &:nth-child(even) {
          >div {
            padding: 5px 10px 0 0;
          }
        }
        &[data-main] {
          img {
            border: 1px solid #ff0000;
            box-shadow: 0 0 5px 0 rgba(0,0,0,.2);
          }
          .mname {
            color: #333;
            font: normal normal bold 12px/22px 'microsoft yahei';
          }
        }

        > div {
          height: 150px;
          margin: 0 auto;

          img {
            width: 100%;
            height: 80px;
            border: 1px solid #ddd;
          }

          .mname {
            color: #666;
            margin: 5px 0;
            word-wrap:break-word;
            font: normal normal normal 12px/22px 'microsoft yahei';
          }
          .mprice {
            color: #ff6666;
            font: normal normal bold 13px/22px 'microsoft yahei';
          }
          .minfo {
            color: #666;
            font: normal normal normal 12px/22px 'microsoft yahei';
          }
        }
      }
    }
  }
}

.mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: #fff;
  display: none;

  .head {
    width: 100%;
    height: 40px;
    background: #0092D7;
    
    .cancel {
      margin: 0 15px;
      float: left;
      color: #fff;
      font: normal normal normal 14px/40px 'microsoft yahei';
    }
    .sure {
      margin: 0 15px;
      color: #fff;
      float: right;
      font: normal normal bold 16px/40px 'microsoft yahei';
    }
  }

  img.resize-image {
    width: 100%;
    height: 100%;
  }
  .btn-crop {
    margin: 10px auto;
    padding: 10px 20px;
    z-index: 999;
    background-color: rgb(222,60,80);
    border: none;
    border-radius: 5px;
    color: #FFF;
    font: normal normal normal 15px/15px 'microsoft yahei';
  }
  .hide {
    display: none;
  }
  .img-container {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    min-height: 300px;
    max-height: 300px;
    margin: -150px 0 20px;
  }
}
